﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;


namespace CDSysLDManageProject
{
    class Exceptionlog
    {
        public static void InsertException(Exception ex)
        {
          //  string []s  = Regex.Split(whyexception, "。");
            InsertException(ex.Message, ex.ToString());
        }
        public static void InsertException(string exceptionTitle,string exceptionText)
        {
            //Log.WriteLog(LogFile.SystemError, "异常名称：" + exceptionTitle + "\n  异常原因：" + exceptionText);
            Log.SystemError.Add("异常名称：" + exceptionTitle + "\n  异常原因：" + exceptionText);
        }
    }
}
